/**
 * 14/02/2014
 * 
 * CustomerBO
 */
package org.cuatrovientos.erp.business;

import java.util.List;

import org.cuatrovientos.erp.dao.CustomerDAOInterface;
import org.cuatrovientos.erp.model.Customer;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Holds all the business logic for Customer related management
 * @author Javier Tejedor
 */
public class CustomerBO implements CustomerBOInterface {

	@Autowired
	private CustomerDAOInterface customerDAO;

	@Override
	public Customer selectById(int id) {
		return customerDAO.selectById(id);
	}

	@Override
	public List<Customer> selectAll() {
		return customerDAO.selectAll();
	}

	@Override
	public List<Customer> search(String description) {
		return customerDAO.search(description);
	}

	@Override
	public void deleteById(int id) {
		customerDAO.deleteById(id);
	}

	@Override
	public void insert(Customer customer) {
		customerDAO.insert(customer);
	}

	@Override
	public void update(Customer customer) {
		customerDAO.update(customer);
	}
	
}
